package com.example.aerohub.exception;

import lombok.Getter;

@Getter
public class GeneralException extends RuntimeException{

	private final int code;

	public GeneralException(ErrorCode errorCode){
		super(errorCode.getMsg());
		this.code = errorCode.getCode();
	}

}